package com.grad.why.studentsystem.service;

import com.grad.why.studentsystem.domain.Classinfo;
import com.grad.why.studentsystem.domain.Student;
import com.grad.why.studentsystem.domain.current.CurrentClassinfo;
import com.grad.why.studentsystem.domain.current.PersonArriveInfoNameAndMax;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassinfoService {

    List<Classinfo> getClassInfos();

    List<CurrentClassinfo> getClassInfoList(int offset, int limit, String sort, String search);

    long getClassInfoListLength(String search);

    int deleteClassinfoById(int id);

    int getMaxId();

    int addClassInfoByEntity(Classinfo classinfo);

    Classinfo getClassInfosByPrimaryKey(Integer id);

    int updateClassinfoHandle(Classinfo oriClassInfo, Classinfo classinfo);

    int updateClassInfoByEntity(Classinfo classinfo);

    int ClassNameIsExist(String classname);

    int addClassInfosByExcelFile(String uploadCurrentFileName);

    List<PersonArriveInfoNameAndMax> getAllClassStudentArrivedInfo(@Param("classid") Integer classid);

    List<Float> getAllClassStudentArrivedInfoValues(@Param("classid") Integer classid);

}
